--- ./Source/WebKit2/UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp.orig	2014-05-22 13:22:35.000000000 +0000
+++ ./Source/WebKit2/UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp	2014-08-05 21:03:26.000000000 +0000
@@ -49,24 +49,7 @@
 
     result.append(homeDirectoryPath() + "/.mozilla/plugins");
     result.append(homeDirectoryPath() + "/.netscape/plugins");
-    result.append("/usr/lib/browser/plugins");
-    result.append("/usr/local/lib/mozilla/plugins");
-    result.append("/usr/lib/firefox/plugins");
-    result.append("/usr/lib64/browser-plugins");
-    result.append("/usr/lib/browser-plugins");
-    result.append("/usr/lib/mozilla/plugins");
-    result.append("/usr/local/netscape/plugins");
-    result.append("/opt/mozilla/plugins");
-    result.append("/opt/mozilla/lib/plugins");
-    result.append("/opt/netscape/plugins");
-    result.append("/opt/netscape/communicator/plugins");
-    result.append("/usr/lib/netscape/plugins");
-    result.append("/usr/lib/netscape/plugins-libc5");
-    result.append("/usr/lib/netscape/plugins-libc6");
-    result.append("/usr/lib64/netscape/plugins");
-    result.append("/usr/lib64/mozilla/plugins");
-    result.append("/usr/lib/nsbrowser/plugins");
-    result.append("/usr/lib64/nsbrowser/plugins");
+    result.append("%%BROWSER_PLUGINS_DIR%%");
 
     String mozillaHome(getenv("MOZILLA_HOME"));
     if (!mozillaHome.isEmpty())
